<style type="text/css">
<!--
table.history{
	border-collapse: collapse;
	border: 1px solid #ccc;
	width: 900px;
}
table.history th, table.history td{
	padding: 5px 10px;
}
table.history th{
	
	background: #efefef;
}
table.history th.date{
	width:110px;
}
table.history th.status{
	width:150px;
}
-->
</style>

<div class="history">
	<table border="1" cellpadding="5" class="history">
		<tr>
			<th class="date">Ngày ứng tuyển</th>
			<th class="date">Ngày phỏng vấn</th>
			<th class="job">Công việc</th>
			<th class="status">Kết quả</th>
			<th class="action">Thao tác</th>
		<tr>
		<?php foreach ($data['history'] as $h):?>
		<tr>
			<td><?php echo DateHelper::dateFormat($h['date_apply'])?></td>
			<td><?php echo DateHelper::dateFormat($h['date_interview'])?></td>
			<td><?php echo $h['Jobs']['Companies']['company_name'], ' - ', $h['Jobs']['title']?></td>
			<td><?php echo __('result_status_'.str_replace('-','_',$h['result_status']), null, 'array_data')?></td>
			<td>
				<a href="#" class="apply-edit" data-title="Ứng tuyển" data-candidate-id="<?php echo $data['id']?>" data-job-id="<?php echo $h['Jobs']['id']?>" title="<?php echo __('interview_edit', null, 'candidate_candidates')?>"><img src="/css/admin/img/global/edit.png" /></a>  
				<!-- <a href="#" class="apply-delete" data-confirm="<?php echo __('apply_delete_confirm', null, 'candidate_candidates')?>" data-id="<?php echo $data['id']?>" title="<?php echo __('interview_delete', null, 'candidate_candidates')?>"><img src="/css/admin/img/global/control-delete.png" /></a>
				--></td>
		</tr>
		<?php endforeach;?>
	</table>
</div>
					